import { GameConst } from "../../../../../component/gconst/GameConst";
import { Cache } from "../../../../cache/Cache";
type int = number;
//class PetExploreUtil
    
    export  class PetExploreUtil
    {
        

        public static getAreaImageName(arg1: int, arg2: Boolean): string
        {
            if (arg2) 
            {
                return "petExplore" + arg1 + "1.swf";
            }
            return "petExplore" + arg1 + "0.swf";
        }

        public static getMapBgImageName(arg1: int): string
        {
            return "petExplore" + arg1 + ".swf";
        }

        public static getAreaMapName(arg1: int): string
        {
            return "petExploreMap" + arg1 + ".jpg";
        }

        public static getAgainExploreCost(arg1: int): int
        {
            if (arg1 == 1) 
            {
                return GameConst.PetExploreCostInFail1;
            }
            if (arg1 == 2) 
            {
                return GameConst.PetExploreCostInFail2;
            }
            if (arg1 == 3) 
            {
                return GameConst.PetExploreCostInFail3;
            }
            return 0;
        }

        public static isAutoExploreMoneyEnough(): Boolean
        {
            return Cache.instance.role.money.coin + Cache.instance.role.money.coinBind >= GameConst.PetExploreAutoExploreCost;
        }
    }
